<template>
    <div class="plane">
        <NuxtLayout>
            <PlaneMain v-model="tableData" @clickList="getDemandFn" />
        </NuxtLayout>
    </div>
</template>


<script setup lang='ts'>
import PlaneMain from './c-comp/PlaneMain.vue';
import { getDemandApi, editStatusApi } from '@/service/api'
const about = ref(0)
const tableData = ref([])

const getDemandFn = async (index: number) => {
    const { data } = await getDemandApi({ about: index })
    if (data.value?.code !== 200) return ElMessage.error(data.value?.msg)
    tableData.value = data.value?.data
}
getDemandFn(about.value)
</script>


<style scoped lang='scss'>
.plane {}
</style>